/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-10-17 下午8:57 Created by lyyang
 */
package com.xunton.bss.weixin.api.button;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 微信菜单类
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-10-17 下午8:57
 */
public class Button implements Serializable
{
    private String type;

    private String name;

    private String key;

    private String url;

    @JsonProperty ("media_id")
    private String mediaId;

    @JsonProperty ("sub_button")
    private Button[] subButtons;

    public String getType()
    {
        return type;
    }

    public void setType(String type)
    {
        this.type = type;
    }

    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public String getKey()
    {
        return key;
    }

    public void setKey(String key)
    {
        this.key = key;
    }

    public String getUrl()
    {
        return url;
    }

    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getMediaId()
    {
        return mediaId;
    }

    public void setMediaId(String mediaId)
    {
        this.mediaId = mediaId;
    }

    public Button[] getSubButtons()
    {
        return subButtons;
    }

    public void setSubButtons(Button[] subButtons)
    {
        this.subButtons = subButtons;
    }
}
